package com.example.bbs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.bbs.entity.Comment;
import com.example.bbs.util.CommentResolve;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author jiajiazi
 * @version 1.0
 * @date 2021/7/5 3:56
 */
@Repository
public interface CommentMapper extends BaseMapper<Comment> {
    List<CommentResolve> getCommentsOfLevel1(int artid);

    List<CommentResolve> getCommentsOfLevel2_3(int artid, int comment1id);

    int updateSupportById(int id, int support);

}
